package com.spring4a.stereo_autoconfig.soundsystem;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by Temp on 2017/9/18.
 */
@Component
public class DvdPlayer implements MediaPlayer {
    private SgtPappers sgtPappers;

    @Autowired
    public DvdPlayer(SgtPappers sgtPappers) {
        this.sgtPappers = sgtPappers;
    }

    public void play() {
        sgtPappers.play();
    }
}
